﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Hamaazan.Data;

public partial class FigurePage : System.Web.UI.Page
{
    public Figure PageFigure { get; set; }
    protected void Page_Load(object sender, EventArgs e)
    {
        using (Hamaazan.Data.HamaazanEntities db = new Hamaazan.Data.HamaazanEntities())
        {
        string name = Request["q"];
        PageFigure = db.Figures.Where(o => o.Name == name).SingleOrDefault();
        
        }

       
    }
}